package ar.com.photo_admin.service.assembler

abstract class BaseAssembler {
	
	def toBeans(def entities){
		def beans = []
		
		entities.each {
			beans.add(toBean(it))
		}
		
		return beans
	}
	
	def toLightWeightBeans(def entities){
		def beans = []
		
		entities.each {
			beans.add(toLightWeightBean(it))
		}
		
		return beans
	}	
	
	abstract def toLightWeightBean(entity);
	
	abstract def toBean(entity);
}
